<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    body {
        margin: 0;
    }

    #dv {
        width: 100px;
        height: 100px;
        background: hotpink;
        position: absolute;
    }

    #carousel .marsk li {
        list-style: none;
        float: left;
        width: 500px;
    }

    #carousel .marsk ul {
        /* width: 2000px; */
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: absolute;
    }

    #carousel .marsk {
        width: 500px;
        border: 1px solid #ccc;
        padding: 5px;
        position: relative;
        overflow: hidden;
        height: 200px;
    }

    #carousel {
        width: 510px;
        margin: 50px auto;
    }

    #carousel .marsk #arrow {
        position: absolute;
        z-index: 1;
        color: #fff;
        width: 100%;
        height: 100%;
        display: none;
    }

    #arrow button {
        outline: 0;
        border: 0;
        height: 50px;
        width: 50px;
        background: rgba(0, 0, 0, .5);
        color: #fff;
        font-size: 20px;
        font-weight: 800;
        cursor: pointer;
    }

    #carousel .marsk #arrow .left {
        position: absolute;
        left: 0;
        top: 43%;
    }

    #carousel .marsk #arrow .right {
        position: absolute;
        right: 0;
        top: 43%;
    }

    #carousel .marsk .indecator {
        position: absolute;
        color: #000;
        font-weight: bolder;
        left: 40%;
        bottom: 5px;
        z-index: 9;
    }

    #carousel .marsk .indecator span {
        display: inline-block;
        width: 25px;
        height: 25px;
        background-color: rgba(255, 255, 255, .8);
        border-radius: 50%;
        text-align: center;
        line-height: 25px;
        margin-right:5px;
        cursor: pointer;
    }

    .indecator-active {
        background-color: hotpink !important;
    }
</style>

<body>
    <div id="carousel">
        <div class="marsk" id="marsk">
            <ul>
                <li>
                    <img src="http://chst.vip/avatar/1.jpg" alt="">
                </li>
                <li>
                    <img src="http://chst.vip/avatar/2.gif" alt="">
                </li>
                <li>
                    <img src="http://chst.vip/avatar/3.gif" alt="">
                </li>
                <li>
                    <img src="http://chst.vip/avatar/4.gif" alt="">
                </li>
            </ul>
            <div id="arrow">
                <button class="left">&lt;</button>
                <button class="right">&gt;</button>
            </div>
        </div>
    </div>
</body>

</html>
<!-- 外链js -->
<script src="./animate.js"></script>
<script src="./index.js"></script>